<?php
	$galleryElement = 'comments';
	$html->initHelper("Comments.Comment");
	$moderationOnComment = cr('GeneralConfig.moderate_gallery_comment');
	$commentStatus = AssetComment::PUBLISHED;
	if($moderationOnComment)
	{
		$commentStatus = AssetComment::UNPUBLISHED;
	}
	$this->set("addEffects",true);
?>

<div>
	<?php echo $html->Comment->show(array('model'=>"AssetComment","conditions"=>array("AssetComment.status"=>AssetComment::PUBLISHED,'AssetComment.listing_asset_id'=>$assetData['ListingAsset']['id']),'element'=>$galleryElement,'cache'=>false));?>
</div>
<div>
	<?php echo $html->Comment->showForm('AssetComment', $assetData['ListingAsset']['id'],'ListingAsset',array('url'=>array('controller'=>'asset_comments','action'=>"add",$assetData['ListingAsset']['id']),'commentStatus'=>$commentStatus));?>
</div>		